///************************************************************************
/// <copyrigth>2018-2019 Corporation.All Rights Reserved</copyrigth>
/// <author>tangyingzhong</author>
/// <contact>tangyz114987@outlook.com</contact>
/// <version>v1.0.0</version>
/// <describe>
/// Generate the plugin here so that others can see it
///</describe>
/// <date>2019/7/25</date>
///***********************************************************************
#ifndef PLUGINGENERATOR_H
#define PLUGINGENERATOR_H

#include "Tool/Module/ModuleRegister.h"
#include "Base/PluginBase.h"

#define GENERATE_PLUGIN(PLUGIN_INTERFACE,PLUGIN_CLASS,PLUGIN_INFO) \
static PluginInfo g_PluginInfo={PLUGIN_INFO}; \
class C##PLUGIN_CLASS :public PLUGIN_CLASS\
{\
public:\
	C##PLUGIN_CLASS() :PLUGIN_CLASS()\
	{\
		SetPluginInfo(g_PluginInfo);\
	}\
\
};\
REGISTER_MODULE(PLUGIN_INTERFACE,C##PLUGIN_CLASS)


#endif //PLUGINGENERATOR_H
